.episode-content {
  max-width: 100%;
  color: var(--foreground);
  margin-top: 3.5rem;
}

.episode-content p {
  margin: 1rem 0;
}

.episode-content h1,
.episode-content h2,
.episode-content h3,
.episode-content h4,
.episode-content h5,
.episode-content h6 {
  margin-bottom: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.episode-content h1 {
  font-size: 2rem;
  margin-top: 2rem;
}

.episode-content h2 {
  margin-top: 3rem;
  display: flex;
  align-items: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.75rem;
  position: relative;
}

.episode-content h2:not(:empty)::before {
  content: '';
  margin-right: 0.75rem;
  height: 0.75rem;
  width: 0.375rem;
  border-radius: 0 9999px 9999px 0;
  background-color: var(--theme);
  flex-shrink: 0;
}

.episode-content h2:not(:empty):nth-of-type(3n)::before {
  opacity: 0.8;
}

.episode-content h2:not(:empty):nth-of-type(3n + 2)::before {
  opacity: 0.6;
}

.episode-content h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
}

.episode-content ul,
.episode-content ol {
  margin-top: 1.5rem;
  padding-left: 1.25rem;
}

.episode-content li {
  margin: 0.5rem 0;
}

.episode-content ul {
  list-style-type: '– ';
}

.episode-content ol {
  list-style-type: decimal;
}

.episode-content strong,
.episode-content b {
  font-weight: 600;
}

.episode-content em,
.episode-content i {
  font-style: italic;
}

.episode-content code {
  padding: 0.125rem 0.25rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.25rem;
  font-size: 0.875em;
  font-family: monospace;
}

.episode-content pre {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.5rem;
  overflow-x: auto;
}

.episode-content pre code {
  padding: 0;
  background: none;
}

.episode-content blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 4px solid var(--theme);
  font-style: italic;
  opacity: 0.9;
}

.episode-content hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.episode-content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
}

.episode-content th,
.episode-content td {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.episode-content th {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.03);
}

body.episode-fullscreen-locked {
  overflow: hidden;
}

.episode-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: var(--background);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.episode-fullscreen .episode-page-header {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .episode-content code {
    background: rgba(255, 255, 255, 0.1);
  }

  .episode-content pre {
    background: rgba(255, 255, 255, 0.05);
  }

  .episode-content hr {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  .episode-content th,
  .episode-content td {
    border-color: rgba(255, 255, 255, 0.1);
  }

  .episode-content th {
    background: rgba(255, 255, 255, 0.05);
  }
}
